package com.eco.fanliapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eco.fanliapp.common.response.ServerResponse;
import com.eco.fanliapp.entity.BannerPicture;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * @ProjectName: fanliapp
 * @Package: com.eco.fanliapp.service
 * @ClassName: IBannerPictureService
 * @Author: LC
 * @Description: 图片信息
 * @Date: 2019/11/28 15:13
 * @Version: 4.2.2
 */
public interface IBannerPictureService extends IService<BannerPicture>
{


    ServerResponse<PageInfo> findAll(Integer currentPage, Integer pageSize, Integer companyId);

    ServerResponse<PageInfo> findAlls(Integer companyId, Integer currentPage, Integer pageSize);

	/**
	 * 邀请链接-海报生成
	 * @param userId
	 * @param companyId
	 * @return
	 */
	ServerResponse<Map<String, Object>> selectByBannerPictureInvitationPoster(
            Long userId, Integer companyId);
	/**
	 * 邀请赚钱链接-旧
	 * @param userId
	 * @return
	 */
	ServerResponse<Map<String, Object>> selectByBannerPictureUrl(
            Long userId);
	/**
	 * 邀请赚钱链接-新
	 * @param userId
	 * @return
	 */
	ServerResponse<Map<String, Object>> selectByBannerPictureUrlNew(
			Long userId);
	int deleteAll(Integer companyId);

    ServerResponse fakeDelete(Integer id);

	ServerResponse insertAndUpdate(BannerPicture bannerPicture);

	/**
	 * 广告位弹窗
	 * @param userId
	 * @return
	 */
	ServerResponse advertisingPopup(Long userId);

	/**
	 * 首页海报
	 * @return
     * @param userId
	 */
    ServerResponse homePosterList(Long userId);
}
